﻿using Benefactor.Models.DbModels;
using Bigway.Common.Models.DtoModels;

namespace Benefactor.Models.DtoModels;

public class GetRefererCommissionsResponseDto: BaseResponseDto
{
    public IEnumerable<RefererCommissionInfo> Data { get; set; }
}

public class RefererCommissionInfo
{
    public required string Id { get; set; }

    public required string SystemId { get; set; }

    public required string RefererAccount { get; set; }

    public required double TotalRefererFee { get; set; }

    public required DateTime CreateTime { get; set; }

    public required DateTime UpdateTime { get; set; }

    public List<RefererCommissionRecordInfo>? RefererCommissionRecords { get; set; }
    public List<RefererCommissionWithdrawalRecord>? RefererCommissionWithdrawalRecords { get; set; }
}

public class RefererCommissionRecordInfo
{
    public required string Id { get; set; }

    public required string SystemId { get; set; }

    public required string RefererCommissionId { get; set; }

    public required string BenefitsCardOrderId { get; set; }

    public required string RefererAccount { get; set; }

    public required string BuyerAccount { get; set; }

    public double RefererFee { get; set; }

    public required DateTime RefererFeePaidTime { get; set; }

    public required DateTime CreateTime { get; set; }

    public required DateTime UpdateTime { get; set; }
}